package com.ruoyi.party.system.domain;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.party.system.validate.TimeRange;

/**
 * 党组织活动记录对象 p_activity
 * 
 * @author 黄宝康
 * @date 2021-04-19
 */
public class Activity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 活动编号 */
    @Excel(name = "活动编号")
   // @NotBlank(message = "活动编号不能为空")
    @Size(min = 0, max = 15, message = "活动编号长度不能超过15个字符")
    private String actId;

    /** 活动组织机构 */
    @Excel(name = "活动组织机构")
    @NotBlank(message = "活动组织机构不能为空")
    @Size(min = 0, max = 10, message = "活动组织机构长度不能超过10个字符")
    private String orgId;

    /** 活动类型 */
    @Excel(name = "活动类型")
    @NotBlank(message = "活动类型不能为空")
    @Size(min = 0, max = 3, message = "活动类型长度不能超过3个字符")
    private String orgType;

    /** 活动主题 */
    @Excel(name = "活动主题")
    @NotBlank(message = "活动主题不能为空")
    @Size(min = 0, max = 100, message = "活动主题长度不能超过100个字符")
    private String actSubject;

    /** 活动日期 */
    @Excel(name = "活动日期")
    @NotBlank(message = "活动日期不能为空")
    @Size(min = 0, max = 10, message = "活动日期长度不能超过10个字符")
    private String actDate;

    /** 活动起止时间 */
    @Excel(name = "活动起止时间")
    @NotBlank(message = "活动起止时间不能为空")
    @Size(min = 0, max = 20, message = "活动起止时间长度不能超过20个字符")
   // @Pattern(regexp="[0-2]\\d:[0-5]\\d:[0-5]\\d-[0-2]\\d:[0-5]\\d:[0-5]\\d",message="活动起止时间格式错误")
    @TimeRange(message="活动起止时间非法")
    private String actDateRange;

    /** 活动地点 */
    @Excel(name = "活动地点")
    @NotBlank(message = "活动地点不能为空")
    @Size(min = 0, max = 100, message = "活动地点长度不能超过100个字符")
    private String actAddr;

    /** 非正式党员是否可以参加 */
    @Excel(name = "非正式党员是否可以参加")
    @NotBlank(message = "非正式党员是否可以参加不能为空")
    @Size(min = 0, max = 1, message = "非正式党员是否可以参加长度不能超过1个字符")
    private String partyOnly;

    // 自定义字段，用于列表显示组织机构名称
    private String orgName;
    
    
    
    public String getOrgName() {
		return orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

	public void setActId(String actId) 
    {
        this.actId = actId;
    }

    public String getActId() 
    {
        return actId;
    }
    public void setOrgId(String orgId) 
    {
        this.orgId = orgId;
    }

    public String getOrgId() 
    {
        return orgId;
    }
    public void setOrgType(String orgType) 
    {
        this.orgType = orgType;
    }

    public String getOrgType() 
    {
        return orgType;
    }
    public void setActSubject(String actSubject) 
    {
        this.actSubject = actSubject;
    }

    public String getActSubject() 
    {
        return actSubject;
    }
    public void setActDate(String actDate) 
    {
        this.actDate = actDate;
    }

    public String getActDate() 
    {
        return actDate;
    }
    public void setActDateRange(String actDateRange) 
    {
        this.actDateRange = actDateRange;
    }

    public String getActDateRange() 
    {
        return actDateRange;
    }
    public void setActAddr(String actAddr) 
    {
        this.actAddr = actAddr;
    }

    public String getActAddr() 
    {
        return actAddr;
    }
    public void setPartyOnly(String partyOnly) 
    {
        this.partyOnly = partyOnly;
    }

    public String getPartyOnly() 
    {
        return partyOnly;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("actId", getActId())
            .append("orgId", getOrgId())
            .append("orgType", getOrgType())
            .append("actSubject", getActSubject())
            .append("actDate", getActDate())
            .append("actDateRange", getActDateRange())
            .append("actAddr", getActAddr())
            .append("partyOnly", getPartyOnly())
            .append("orgName", getOrgName())
            .toString();
    }
}
